package com.parenting.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CouponUpdateRequest对象", description="用于优惠券修改")
public class CouponUpdateRequest implements Serializable {

    @ApiModelProperty(value = "ID" ,required = true)
    @NotBlank(message = "ID不能为空")
    private String couponId;

    @ApiModelProperty(value = "优惠券数量" ,required = true)
    @NotNull(message = "优惠券数量不能为空")
    private Integer total;
}
